<?php

include 'core.php';
$db = con();

// $sql = 'INSERT INTO `tb_scoreinfo`(`sno`, `sname`, `chinesescore`, `englishscore`, `mathscore`, `physicsscore`, `chemistryscore`) VALUES (009, "刘麻子1", 82, 91, 60, 83, 76)';
$sql = 'select * from student';
// $res = $db->add($sql);
$res = $db->find($sql);
if ($res) {
	echo json_encode($res);
} else {
	echo "添加失败";
}
?>